<?php
class OrderDetail {

	private $orderId;
	private $productId;
	private $unitPrice;
	private $quantity;
	private $sizeSelected;
	private $colorSelected;
	
	// info retrieved from Product table only
	private $productCode;
	private $productName;
	private $postage;
	private $postAllow;
	
	// info calculated
	private $subTotal;

	public function getOrderId() {
		return $this->orderId;
	}
	public function setOrderId($orderId) {
		$this->orderId = $orderId;
	}

	public function getProductId() {
		return $this->productId;
	}
	public function setProductId($productId) {
		$this->productId = $productId;
	}
	public function getUnitPrice() {
		return $this->unitPrice;
	}
	public function setUnitPrice($unitPrice) {
		$this->unitPrice = $unitPrice;
	}
	public function getQuantity() {
		return $this->quantity;
	}
	public function setQuantity($quantity) {
		$this->quantity = $quantity;
	}
	public function getSizeSelected() {
		return $this->sizeSelected;
	}
	public function setSizeSelected($sizeSelected) {
		$this->sizeSelected = $sizeSelected;
	}
	public function getColorSelected() {
		return $this->colorSelected;
	}
	public function setColorSelected($colorSelected) {
		$this->colorSelected = $colorSelected;
	}
	
	// info retrieved from Product table only
	public function getProductCode() {
		return $this->productCode;
	}
	public function setProductCode($productCode) {
		$this->productCode = $productCode;
	}
	public function getProductName() {
		return $this->productName;
	}
	public function setProductName($productName) {
		$this->productName = $productName;
	}
	public function getPostage() {
		return $this->postage;
	}
	public function setPostage($postage) {
		$this->postage = $postage;
	}
	public function getPostAllow() {
		return $this->postAllow;
	}
	public function setPostAllow($postAllow) {
		$this->postAllow = $postAllow;
	}
	
	// info calculated
	public function getSubTotal() {
		return $this->subTotal;
	}
	public function setSubTotal($subTotal) {
		$this->subTotal = $subTotal;
	}
	
}

?>